Skip to content

Hide account email addresses (optionally) - #66873

Open
luflow wants to merge 2 commits into
nextcloud:masterfrom
luflow:feat/23172/hide-account-email-addresses
Open

luflow wants to merge 2 commits into
nextcloud:masterfrom
luflow:feat/23172/hide-account-email-addresses

Conversation

@luflow

@luflow luflow commented Nov 20, 2026 •

Copy link
Copy Markdown

Summary

In our organisation we had complaints that the mail addresses of our members are visible to all other members - in searches, in contact cards of talk and other places. This PR solves the issue by adding a new option in the sharing settings to hide the mail address and instead just show the username (user id) as fallback.

Behaviour

  • The switch is enabled by default, so nothing changes for existing installations.
  • When disabled: no email action in the contacts menu or the avatar menu (e.g. in Talk when clicking on an avatar picture), and the search and the share dialog show the user ID instead of the email address.

Not affected

  • The system address book via CardDAV
  • Personal address books
  • Search by the complete email address, as long as the existing checkbox Also allow autocompletion on full match of the user email is checked

Configuration

Can also be set via occ:

occ config:app:set core shareapi_show_account_email --value=false --type=boolean

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using Anthropic Fable 5.2

Screenshot of new option

before
sharing-setting-page-before

after
sharing-setting-page-marked

The email address of every account is shown to all other accounts in
the contacts menu, in the hover card and as secondary line in the
sharee search. Email cannot be scoped as private, so there is no way to
turn that off.

Add the app config `shareapi_show_account_email` (enabled by default)
with a switch in the privacy section of the sharing admin settings.
When disabled:

- Contacts menu entries of accounts carry no email addresses, so the
  email action is not added. Contacts from personal address books are
  not affected.
- Sharee search results for accounts use the user ID as unique display
  name and do not include the address in the label.

Accounts can still be found by a full match on their email address,
this stays controlled by the existing full match settings.

Assisted-by: ClaudeCode:claude-fable-5-2
Signed-off-by: Florian Ludwig <florian@krautnerds.de>
@luflow
luflow force-pushed the feat/23172/hide-account-email-addresses branch from b2cb048 to dc8d12c Compare November 20, 2026 19:32
@luflow

luflow commented Nov 20, 2026

Copy link
Copy Markdown
Author

I tried to re-run the failing job three times, but it keeps failing. I suspect it is caused by the specific runner the job ends up on.

Details:

  • Job sqlite / SQLite (PHP 8.5) in run 44803145405, three attempts
  • Only Test\Preview\PostscriptTest::testGetThumbnail fails (all four data sets)
  • The log shows Last OS error: Permission denied followed by GPL Ghostscript 10.06.0: Unrecoverable error, exit code 1
  • All three failing attempts ran on a GitHub-hosted runner (ubuntu-latest); the same job passed earlier on this PR on a garm runner

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to disable showing system email in avatars' contacts menu

1 participant